﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.master"
    AutoEventWireup="true" CodeFile="News.aspx.cs" Inherits="Modeling_Sub_Pages_NewsPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #main
        {
            min-width: 1050px;
        }
        #tbEventList
        {
            padding-bottom: 20px;
            margin-right: auto;
            margin-left: auto;
        }
        #center1
        {
            width: 1060px;
            min-height: 500px;
            padding-top: 15px;
            margin-right: auto;
            margin-left: auto;
        }
        #center
        {
            width: 800px;
            padding-left: 15px;
        }
        .textContent a
        {
            text-decoration: none;
            color: #0283A0;
        }
        .textContent a:hover
        {
            text-decoration:underline;
        }
        .textContent a:visited
        {
            color: #0283A0;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <div id="center1">
        <div id="left">
            <table>
                <tr>
                    <td id="activeTD">
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/SubPages/NewsPage.aspx"
                            CssClass="activeLink">News</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/SubPages/EventsPage.aspx"
                            CssClass="LinkStyle1">Events</asp:HyperLink>
                    </td>
                </tr>
            </table>
        </div>
        <div id="center">
            <asp:DataList ID="dlEvents" runat="server" RepeatColumns="4">
                <ItemTemplate>
                    <table id="EventsTable">
                        <tr>
                            <td>
                                <asp:Label ID="lblEventDateStart" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Date & Time]")%>' ForeColor="#666666"></asp:Label>
                                <br />
                                <asp:Label ID="lblTitle" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Title]", "{0:c}")%>' Font-Size="18" Font-Bold="True"></asp:Label>
                                <br /><br />
                                <asp:Image ID="imgNews" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "[Image]") %>'
                                    runat="server" Width="700"/>
                                    <br /><br />
                                <asp:Label ID="lblContent" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Content]", "{0:c}")%>' Font-Size="13" CssClass="textContent"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </div>
    </div>
</asp:Content>
